//
//  PayBackingModel.m
//  TenThousand
//
//  Created by apple on 16/7/21.
//  Copyright © 2016年 baixue. All rights reserved.
//

#import "PayBackingModel.h"

@implementation PayBackingModel

- (id)initWithDictionary:(NSDictionary *)dic {
    if (self = [super init]) {
        self.Code = [self stringWithNSObject:[dic objectForKey:@"Code"]];
        self.Ratejiekuan = [self stringWithNSObject:[dic objectForKey:@"Ratejiekuan"]];
        self.TeamYear = [self stringWithNSObject:[dic objectForKey:@"TeamYear"]];
        self.Bpay = [self stringWithNSObject:[dic objectForKey:@"Bpay"]];
        self.MaxPrice = [self stringWithNSObject:[dic objectForKey:@"MaxPrice"]];
        self.Totaljiekuanlixi = [self stringWithNSObject:[dic objectForKey:@"Totaljiekuanlixi"]];
        self.Overdue = [self stringWithNSObject:[dic objectForKey:@"Overdue"]];
        self.AddTime = [self stringWithNSObject:[dic objectForKey:@"AddTime"]];
        self.PaySate = [self stringWithNSObject:[dic objectForKey:@"PaySate"]];
        self.BorrowId = [self stringWithNSObject:[dic objectForKey:@"BorrowId"]];
        self.TeanAmount = [self stringWithNSObject:[dic objectForKey:@"TeanAmount"]];
        
    }
    return self;
}

-(NSString*) stringWithNSObject:(id)_it
{
    if ([_it isKindOfClass:[NSNull class]]) {
        return @"";
    }
    
    if ([_it isKindOfClass:[NSString class]]) {
        return _it;
    }
    
    NSNumber* _num = (NSNumber*)_it;
    return [_num stringValue];
    
}




@end
